﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using NetworkCommsDotNet;
using System.Net;
using DPSBase;

namespace testingNetworkStuff
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {
        public XtraForm1()
        {
            InitializeComponent();
        }

        private void XtraForm1_Load(object sender, EventArgs e)
        {
            

            UDPConnection.SendObject("Request", "This is the broadcast test message!",
                new IPEndPoint(IPAddress.Broadcast, 10000));  
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            UDPConnection.SendObject("Request", "This is the broadcast test message!",
                new IPEndPoint(IPAddress.Broadcast, 10000)); 
        }
    }
}